package com.signal;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.provider.MediaStore;

public class Tela8 extends Activity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		Intent intentCamera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
		startActivityForResult(intentCamera, 1);
		
	}
	
	@Override
	protected void onActivityResult(int requestCode, int resultCode,
			final Intent data)
	{
		super.onActivityResult(requestCode, resultCode, data);

		if (requestCode == 1 && resultCode == RESULT_OK)
		{
			
			Bundle bundle = data.getExtras();

			Bitmap foto = (Bitmap)bundle.get("data");
			SharedResources.sFotos.add(foto);
			
			Intent intent = new Intent(Tela8.this, Tela9.class);
			intent.putExtras(bundle);
			startActivity(intent);
			finish();
			
		}
		
	}
	
}
